package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_KZCS"
 *     
*/
public class XtglKzc implements Serializable {

    /** identifier field */
    private String kzbh;

    /** nullable persistent field */
    private String kzflDm;

    /** nullable persistent field */
    private String kzflMc;

    /** nullable persistent field */
    private String csflDm;

    /** nullable persistent field */
    private String csflMc;

    /** nullable persistent field */
    private String csValue;

    /** nullable persistent field */
    private String csBz;

    /** nullable persistent field */
    private String zt2;

    /** nullable persistent field */
    private String zt3;

    /** full constructor */
    public XtglKzc(String kzbh, String kzflDm, String kzflMc, String csflDm, String csflMc, String csValue, String csBz, String zt2, String zt3) {
        this.kzbh = kzbh;
        this.kzflDm = kzflDm;
        this.kzflMc = kzflMc;
        this.csflDm = csflDm;
        this.csflMc = csflMc;
        this.csValue = csValue;
        this.csBz = csBz;
        this.zt2 = zt2;
        this.zt3 = zt3;
    }

    /** default constructor */
    public XtglKzc() {
    }

    /** minimal constructor */
    public XtglKzc(String kzbh) {
        this.kzbh = kzbh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="KZBH"
     *         
     */
    public String getKzbh() {
        return this.kzbh;
    }

    public void setKzbh(String kzbh) {
        this.kzbh = kzbh;
    }

    /** 
     *            @hibernate.property
     *             column="KZFL_DM"
     *             length="2"
     *         
     */
    public String getKzflDm() {
        return this.kzflDm;
    }

    public void setKzflDm(String kzflDm) {
        this.kzflDm = kzflDm;
    }

    /** 
     *            @hibernate.property
     *             column="KZFL_MC"
     *             length="50"
     *         
     */
    public String getKzflMc() {
        return this.kzflMc;
    }

    public void setKzflMc(String kzflMc) {
        this.kzflMc = kzflMc;
    }

    /** 
     *            @hibernate.property
     *             column="CSFL_DM"
     *             length="2"
     *         
     */
    public String getCsflDm() {
        return this.csflDm;
    }

    public void setCsflDm(String csflDm) {
        this.csflDm = csflDm;
    }

    /** 
     *            @hibernate.property
     *             column="CSFL_MC"
     *             length="50"
     *         
     */
    public String getCsflMc() {
        return this.csflMc;
    }

    public void setCsflMc(String csflMc) {
        this.csflMc = csflMc;
    }

    /** 
     *            @hibernate.property
     *             column="CS_VALUE"
     *             length="50"
     *         
     */
    public String getCsValue() {
        return this.csValue;
    }

    public void setCsValue(String csValue) {
        this.csValue = csValue;
    }

    /** 
     *            @hibernate.property
     *             column="CS_BZ"
     *             length="1"
     *         
     */
    public String getCsBz() {
        return this.csBz;
    }

    public void setCsBz(String csBz) {
        this.csBz = csBz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    /** 
     *            @hibernate.property
     *             column="ZT3"
     *             length="50"
     *         
     */
    public String getZt3() {
        return this.zt3;
    }

    public void setZt3(String zt3) {
        this.zt3 = zt3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("kzbh", getKzbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglKzc) ) return false;
        XtglKzc castOther = (XtglKzc) other;
        return new EqualsBuilder()
            .append(this.getKzbh(), castOther.getKzbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getKzbh())
            .toHashCode();
    }

}
